//
//  MKJChatModel.h
//  纯代码气泡聊天
//
//  Created by 宓珂璟 on 16/6/3.
//  Copyright © 2016年 宓珂璟. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "YZEChatTargetModel.h"
#import "YZEDrugplanModel.h"
#import "YZEConsultModel.h"
#import "YZESuggestionModel.h"

@interface MKJChatModel : NSObject

@property (nonatomic,strong) NSMutableArray *images;
@property (nonatomic,assign) BOOL isRight;
@property (nonatomic,assign) BOOL isShowTime;

@property (nonatomic, strong) NSNumber *id;
@property (nonatomic, retain) NSString *content;
@property (nonatomic, retain) NSString *createdDate;
@property (nonatomic, retain) NSString *model;
@property (nonatomic, retain) NSString *type; //消息类型 "text"文本，"image"图片
@property (nonatomic, retain) NSString *imageurls;
@property (nonatomic, retain) YZEChatTargetModel *dSender;
@property (nonatomic, retain) YZEChatTargetModel *dReceiver;
@property (nonatomic, retain) YZEDrugplanModel *drugplanDTO;
@property (nonatomic, retain) YZESuggestionModel *suggestDTO;
@property (nonatomic, retain) YZEConsultModel *consultationDTO;

@end


/*
{
    "id": 206,
    "dSender": {
        "id": 136,
        "firstName": "刘两刀",
        "avatar": "http://huanmei-health.oss-cn-shanghai.aliyuncs.com/upload/20170513105848900/-1186586859.png",
        "activated": true,
        "doctorId": null,
        "sickpersonId": 53
    },
    "dReceiver": {
        "id": 139,
        "firstName": "uhhj",
        "avatar": "http://huanmei-health.oss-cn-shanghai.aliyuncs.com/upload/20170425164408312/-530642140.png",
        "activated": true,
        "doctorId": 53,
        "sickpersonId": null
    },
    "content": "我关注了你",
    "model": "FANS_MESSAGE",
    "images": null,
    "imageUrl": null,
    "drugplanDTO": null,
    "consultationDTO": null,
    "suggestDTO": null,
    "type": "text"/"image",
    "createdDate": "2017-05-18 17:26"
}

//患者用户自己的信息
{
    "id": 53,
    "avatar": "http://huanmei-health.oss-cn-shanghai.aliyuncs.com/upload/20170425105005000/-877252095.png",
    "name": "nihao",
    "idcard": "123456789012345678",
    "birthday": "2017-04-25",
    "phone": "18775048165",
    "stage": "AFTER",
    "gender": "MALE",
    "medical": "COUNTRYSIDE",
    "casenumber": "10086",
    "medicalnumber": "10010",
    "address": "buzhidao",
    "status": "NORMAL",
    "user": {
        "id": 136,
        "login": "18775048165",
        "firstName": "刘两刀",
        "lastName": null,
        "email": "kajshdu@1qqq.com",
        "activated": true,
        "langKey": "zh-cn",
        "activationKey": null,
        "resetKey": "16234828603560748163",
        "resetDate": "2017-04-25T10:49:13+08:00",
        "phone": "18775048165",
        "avatar": "http://huanmei-health.oss-cn-shanghai.aliyuncs.com/upload/20170513105848900/-1186586859.png"
    },
    "district": {
        "id": 1000003,
        "name": "海珠区",
        "city": {
            "id": 1000000,
            "name": "广州市",
            "province": {
                "id": 1000000,
                "name": "广东省"
            }
        }
    },
    "hospital": {
        "id": 1,
        "name": "北京协和医院",
        "specialSection": null,
        "common": true,
        "province": {
            "id": 1000002,
            "name": "北京市"
        },
        "introduce": null,
        "address": null,
        "phone": null,
        "imgUrl": null
    },
    "grafting": {
        "id": 101,
        "name": "其他移植"
    },
    "doctor": null,
    "ungagTime": null,
    "unkickTime": null
}
//医生发用药方案
{
    "id": 2,
    "name": "脑移植的建议",
    "nextchecktime": "2017-05-09",
    "advice": "少吃饭，多熬夜",
    "description": "超度",
    "accept": true,
    "imageurls": null,
    "images": null,
    "drugplandetailDTOs": null,
    "medicines": [],
    "inspectionitems": [
                        {
                            "id": 2,
                            "name": "血药浓度"
                        }
                        ],
    "sickId": 136
}
//医生发用药方案详情
{
    "id": 2,
    "startTime": "2017-04-28",
    "frequency": "two times a week",
    "unit": "一次1L",
    "times": null,
    "dose": null,
    "sickMedicineId": null,
    "medicineId": 2,
    "drugplanId": 1
}

//医生建议
{
    "id": 3,
    "name": "建议",
    "content": "建议你多吃www",
    "imageurls": "http://huanmei-health.oss-cn-shanghai.aliyuncs.com/upload/20170513153858054/-405447747.png,",
    "images": null,
    "accept": null,
    "sickId": 136,
    "doctorId": null
}
//图文咨询
{
    "id": 1,
    "name": "string",
    "content": "string",
    "imageurls": "http://huanmei-health.oss-cn-shanghai.aliyuncs.com/upload/20170527162920294/-1074848902.png",
    "images": null,
    "sickId": 136,
    "doctorId": 136
}
*/
